import request from '@/utils/request';

// 查询用户操作详情
export function queryOperateOverview(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/userActionBacktracking/userActionDetail/queryUserActionDetail',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 分页查询用户操作业务步骤列表
export function queryBusinessStepListPage(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/userActionBacktracking/userActionDetail/queryUserActionBusiStepList',
		method: 'post',
		data: data,
	});
}

// 查询展开列表信息详情
export function getBaseAlarmList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/business/getBaseAlarmList',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 分页查询节点信息
export function queryEndToEndDetail(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/detail/queryEndToEndDetail',
		method: 'post',
		data: data,
	});
}

// 查询业务步骤IT路径图
export function stepEndToEndRelation(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/detail/stepEndToEndRelation',
		method: 'post',
		data: data,
		timeout: 120000,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 修改网端坐标
export function updateSegmentPosition(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/detail/updateSegmentPosition',
		method: 'post',
		data: data,
	});
}
